<template>
  <div class="textMainContainer">
      <router-view></router-view>
  </div>
</template>

<script>

export default {
name:'TextReadingBox',
data(){
    return{
        isshow:[1,0,0], //依次代表init，msg和borrow
        keyword:'',//从topblank传来的图书搜索关键字
    }
},
mounted() {
    //接受参数，更改页面为图书搜索信息结果页面
    this.$bus.$on('booksearch',(data)=>{
        this.$router.push({
            name:'msg',
            params:{
                bookMsg:data,
            }
        })
    })
    this.$bus.$on('libAnnounce',()=>{
        this.$router.push({
            name:'init',
        })
    })
    this.$bus.$on('bookborrow',()=>{
        this.$router.push({
            name:'borrow',
        })
    })
    this.$bus.$on('readPlan',()=>{
        this.$router.push({
            name:'readplan',
        })
    })
},
}
</script>

<style scoped>
div.textMainContainer{
    margin:5px 0 0 10px;
    width: 100%;
    height: 1400px;
    background-color: rgba(255, 255, 255, 0.404);
}
</style>
